--[[
* 无法获得能量
*]]
---@class BuffEffect71 : BaseBuffEffect
BuffEffect71 = ClientFight.CreateClass("BuffEffect71", ClientFight.BaseBuffEffect)
local t = BuffEffect71
---@param fight Fight
---@param buff FighterBuff

function t:action(fight, buff, ...)
    local parameters = {...};
    if (parameters[3].__cname == "FightResult") then

        local fightResult = parameters[3];
        if (fightResult.damageType == SkillDamageTypeEnum.ENERGY and fightResult.damage > 0) then
            fightResult.damage = 0;
        end
    end
    return ClientFight.BaseBuffEffect.action(self, fight, buff, parameters);
end

t.New()